using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

namespace Steup
{
    public class SetupSystem : MonoBehaviour
    {
        static SetupSystem s_instance = null;
        public static SetupSystem Instance { get { return s_instance; } }

        private int m_Index;
        private List<TaskBase> m_TaskQueue = new List<TaskBase>() {
            new InstallTask(),
            new LoadDllTask()
        };

        void Awake()
        {
            s_instance = this;
            m_Index = 0;
            Next();
        }

        public void Next()
        {
            if (m_Index < m_TaskQueue.Count)
            {
                m_TaskQueue[m_Index++].Start();
            }
        }
    }
}
